<ion-view view-title="促销" class="myworld_disscount_sales">

	<!--描述：滑动块-->
<ion-content>
	<div class="row padding-0 font-large-my text-center">
		<div class="col" ng-class="selectIndex==0?'assertive':''" on-tap="activeSlide(0)">
	                   旗舰店发起
        </div>
		<div class="col col-40" ng-class="selectIndex==1?'assertive':''" on-tap="activeSlide(1)">
		     品牌运营商发起
		</div>
		<div class="col" ng-class="selectIndex==2?'assertive':''" on-tap="activeSlide(2)">
			我发起
		</div>		
	</div>
			
		<!--描述：主要内容-->
		<ion-slide-box delegate-handle="main-handle" on-slide-changed="slideChanged(index)" active-slide="slideIndex" show-pager="false">
			<!--旗舰店发起-->
			<ion-slide >
				<div class="row padding-0 font-large-my text-center">
					<div class="col" ng-class="selectIndex_make==0?'top-activated':''" on-tap="activeSlide_make(0)">
				              进行中
			        </div>
					<div class="col" ng-class="selectIndex_make==1?'top-activated':''" on-tap="activeSlide_make(1)">
					      已结束
					</div>
				</div>
			  <ion-slide-box delegate-handle="make-handle" on-slide-changed="slideChanged_make(index)"  show-pager="false">
				<ion-slide>
					<div class="list">
						  <div class="item item-thumbnail-left" style="padding-right: 5px;padding-bottom: 5px;padding-top: 5px;" ng-repeat="m in m_doing.act">
							<img src="{{m.image.image}}">
							<p on-tap="onshow_sales(4)">{{m.name}}</p> 
							<p>商品数量:{{m.goods_count}}<span class="right-zhang">参加人数:{{m.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{m.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{m.end_time}}</p>
							<p>
							 <span on-tap="onshow_promotion(m.act_id)"><i class="icon ion-person assertive"></i>参加</span>
							 <i class="icon ion-android-contacts assertive margin-left-10-my"></i>群互动
							</p>
					  </div>
					</div>
				</ion-slide>
				
				<ion-slide>
					<div class="list">
						  <div class="item item-thumbnail-left" style="padding-right: 5px;padding-bottom: 5px;padding-top: 5px;" ng-repeat="m in m_ended.act">
							<img src="{{m.image.image}}">
							<p on-tap="onshow_sales(4)">{{m.name}}</p> 
							<p>商品数量:{{m.goods_count}}<span class="right-zhang">参加人数:{{m.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{m.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{m.end_time}}</p>
							<p>
							<span on-tap="onshow_promotionaddup(m.act_id)"><i class="icon ion-android-options assertive"></i>统计</span>
							</p>
					  </div>
					</div>
				</ion-slide>
				</ion-slide-box>
			</ion-slide>
				
				<!--品牌运营商发起-->
				<ion-slide >
					<div class="row padding-0 font-large-my text-center">
						<div class="col" ng-class="selectIndex_brand==0?'top-activated':''" on-tap="activeSlide_brand(0)">
					             进行中
				        </div>
						<div class="col" ng-class="selectIndex_brand==1?'top-activated':''" on-tap="activeSlide_brand(1)">
						      已结束
						</div>
					</div>
				  <ion-slide-box delegate-handle="brand-handle" on-slide-changed="slideChanged_brand(index)"  show-pager="false">
					<ion-slide>
					<div class="list">
						<div class="item item-thumbnail-left" style="padding-right: 5px;padding-bottom: 5px;padding-top: 5px;" ng-repeat="a in a_doing.act">
							<img src="{{a.image.image}}">
							<p>{{a.name}}</p> 
							<p>商品数量:{{a.goods_count}}<span class="right-zhang">参加人数:{{a.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{a.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{a.end_time}}</p>
							<p>
								<!--<span on-tap="onshow_promotionaddup(a.act_id)"><i class="icon ion-android-options assertive font-1rem-my"></i>统计</span>-->
								<span on-tap="onshow_promotion(a.act_id)"><i class="icon ion-person assertive margin-left-10-my"></i>参加</span>
							</p>
					   </div>
					</div>
					</ion-slide>
					
					<ion-slide>
						<div class="list">
						<div class="item item-thumbnail-left" style="padding-right: 5px;padding-bottom: 5px;padding-top: 5px;" ng-repeat="a in a_ended.act">
							<img src="{{a.image.image}}">
							<p>{{a.name}}</p> 
							<p>商品数量:{{a.goods_count}}<span class="right-zhang">参加人数:{{a.member_count}}</span></p>
							<p><i class="icon ion-clock"></i>{{a.start_time}}</p>
							<p><i class="icon ion-clock"></i>{{a.end_time}}</p>
							<p>
								<span on-tap="onshow_promotionaddup_agent(a.act_id)"><i class="icon ion-android-options assertive"></i>统计</span>
								<!--<span on-tap="onshow_promotion()"><i class="icon ion-person assertive font-1rem-my margin-left-10-my"></i>参加</span>-->
							</p>
					   </div>
					</div>
					</ion-slide>
					</ion-slide-box>
				</ion-slide>
				
		<!--我发起-->
		<ion-slide >
			<div class="row font-large-my padding-0 text-center">
				<div class="col" ng-repeat="t in detail.top"  ng-class="selectIndex_small==$index?'top-activated':''" on-tap="activeSlide_small($index)" >
					{{::t}}
				</div>
				<div class="col" on-tap="onshow_d_add_agent()">
					发起促销
				</div>
			</div>
		
		<ion-slide-box delegate-handle="small-handle" on-slide-changed="slideChanged_small(index)"  show-pager="false">
		<ion-slide ><!--进行中-->
		<div class="list">
			<div class="item item-thumbnail-left" style="padding-right: 5px;padding-top: 5px;padding-bottom: 5px;" ng-repeat="mi in mine_doing.act">
				<img src="{{mi.image.image}}">
				<p>{{mi.name}}</p> 
				<p>商品数量:{{mi.goods_count}}<span class="right-zhang">参加人数:{{mi.member_count}}</span></p>
				<p><i class="icon ion-clock"></i>{{mi.start_time}}</p>
				<p><i class="icon ion-clock"></i>{{mi.end_time}}</p>
				<p>
					<!--<span on-tap="onshow_promotion(mi.act_id)"><i class="icon ion-person assertive"></i>参加</span>-->
					<i class="icon ion-android-contacts assertive"></i>群互动
				</p>
		   </div>
		</div>
	 </ion-slide>
	 
	 <ion-slide ><!--待审批-->
		<div class="list">
			<div class="item item-thumbnail-left" style="padding-right: 5px;padding-top: 5px;padding-bottom: 5px;" ng-repeat="pending in mine_pending.act">
				<img src="{{pending.image.image}}">
				<p>{{pending.name}}</p> 
				<p>商品数量:{{pending.goods_count}}<span class="right-zhang">参加人数:{{pending.member_count}}</span></p>
				<p><i class="icon ion-clock"></i>{{pending.start_time}}</p>
				<p><i class="icon ion-clock"></i>{{pending.end_time}}</p>
				<p>
					<span on-tap="onshow_d_add_agent()"><i class="icon ion-compose assertive"></i>编辑</span>
				</p>
		   </div>
		</div>
	 </ion-slide>
	 
	 <ion-slide ><!--已结束-->
		<div class="list">
			<div class="item item-thumbnail-left" style="padding-right: 5px;padding-top: 5px;padding-bottom: 5px;" ng-repeat="ended in mine_ended.act">
				<img src="{{ended.image.image}}">
				<p>{{ended.name}}</p> 
				<p>商品数量:{{ended.goods_count}}<span class="right-zhang">参加人数:{{ended.member_count}}</span></p>
				<p><i class="icon ion-clock"></i>{{ended.start_time}}</p>
				<p><i class="icon ion-clock"></i>{{ended.end_time}}</p>
				<p>
				   <span on-tap="onshow_promotionaddup_add_agent(mi.act_id)"><i class="icon ion-android-options assertive font-1rem-my"></i>统计</span>
				</p>
			</div>
		</div>
	 </ion-slide>
	 </ion-slide-box>	
	   </ion-slide>
	  </ion-slide-box>
	</ion-content>
</ion-view>